﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DAL;
using DAL.Log4Net;

namespace MobileShop.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {

            List<DAL.User.User> ulist = new List<DAL.User.User>();

            IList<DAL.User.User> u = DAL.BaseDB.QueryForListSkip<DAL.User.User>("selectAllUser", 5, 10);
            foreach (DAL.User.User user in u)
            {
                ulist.Add(user);
            }
           
            ViewData["scret"] = Common.JWTHelp.secret;
       
            ViewData["number"] = u.Count;
            ViewData["user"] = ulist;
            return View();
        }

        public ActionResult Test() {

            return View();
        }

    }
}
